function printNumber(number, char) {
    const digits = [
        [[' **** '], ['  **  '], [' **** '], [' **** '], ['**  **'], ['******'], ['   ** '], ['******'], [' **** '], [' **** ']],
        [['**  **'], [' ***  '], ['**  **'], ['**  **'], ['**  **'], ['**    '], ['  **  '], ['**  **'], ['**  **'], ['**  **']],
        [['**  **'], ['* **  '], ['   ** '], ['   ** '], ['**  **'], ['***** '], [' **** '], ['   ** '], [' **** '], ['**  **']],
        [['**  **'], ['  **  '], ['  **  '], ['   ** '], [' *****'], ['    **'], ['**  **'], ['  **  '], [' **** '], [' **** ']],
        [['**  **'], ['  **  '], [' **   '], ['**  **'], ['    **'], ['    **'], ['**  **'], [' **   '], ['**  **'], ['  **  ']],
        [[' **** '], ['******'], ['******'], [' **** '], ['    **'], ['***** '], [' **** '], [' **   '], [' **** '], [' **   ']],
    ];
    number = number.toString().padStart(5, '0');
    var res = []
    var banner = '****************************************';
    var space = '*                                      *';
    res.push(banner, space);
    for (var i = 0; i < 6; i++) {
        var row = [];
        row.push('* ');
        for (x of number) row.push(digits[i][+x]);
        row.push(' *');
        res.push(row.join(' '))
    }
    res.push(space, banner);
    return res.join('\n').replace(new RegExp('\\*', 'g'), char)
}

